package registnet.base;

import java.util.ListIterator;
import java.util.Vector;

/**
 * An implementation of a curriculum.
 */
public class Curriculum extends AbstractCurriculum {

	/**
	 * Default constructor which creates an "empty" curriculum.
	 */
	public Curriculum(){
		curriculumCode = "";
		courses = new Vector<ICourse>();
	}
	
	/**
	 * Prints a basic description of the curriculum.
	 */
	public void print(){
		System.out.println("[check] curriculum: "+curriculumCode+" "+courses.size());
		ListIterator<ICourse> li = courses.listIterator();
		while(li.hasNext()){
			ICourse course = li.next();
			System.out.println("[check] curriculumCourse: "+course.getCourseCode()+" "+course.getYear()+" "+course.getSemester());
		}
	}
	
}
